Diary 2022-07-06
100 famous views of the water city
https://gyazo.com/2905bf6f29305f2a101bba4a1aa97559
code::
Over 200 classes were generated for component styled.div with the id of "sc-gKXOVf".
Consider using the attrs method, together with a style object for frequently changed styles.
Example:
const Component = styled.div.attrs(props => ({
style: {
background: props.background,
},
}))width: 100%;
---
This page is auto-translated from /nishio/日記2022-07-06 using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.